package com.byt.framlib.commonwidget;

import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.EditText;

import com.byt.framlib.commonutils.SolveEditTextScrollClash;

/**
 * Created by Sahadev on 2016/4/20.
 */
@SuppressLint("AppCompatCustomView")
public class ScrollEditView extends EditText {

    //滑动距离的最大边界
    private int mOffsetHeight;

    //是否到顶或者到底的标志
    private boolean mBottomFlag = false;

    public ScrollEditView(Context context) {
        super(context);
        init();
    }

    public ScrollEditView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public ScrollEditView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    private void init() {
        setOnTouchListener(new SolveEditTextScrollClash(this));
    }
}